<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
	<meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- HTML5 shim for IE8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <![endif]-->

	<link href="/statics/simpleboot/themes/<?php echo C('SP_ADMIN_STYLE');?>/theme.min.css" rel="stylesheet">
    <link href="/statics/simpleboot/css/simplebootadmin.css" rel="stylesheet">
    <link href="/statics/js/artDialog/skins/default.css" rel="stylesheet" />
    <link href="/statics/simpleboot/font-awesome/4.2.0/css/font-awesome.min.css"  rel="stylesheet" type="text/css">
    <style>
		.length_3{width: 180px;}
	</style>
	<!--[if IE 7]>
	<link rel="stylesheet" href="/statics/simpleboot/font-awesome/4.2.0/css/font-awesome-ie7.min.css">
	<![endif]-->
<script type="text/javascript">
//全局变量
var GV = {
    DIMAUB: "/",
    JS_ROOT: "statics/js/",
    TOKEN: ""
};
</script>
<!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="/statics/js/jquery.js"></script>
    <script src="/statics/js/wind.js"></script>
    <script src="/statics/simpleboot/bootstrap/js/bootstrap.min.js"></script>
<?php if(APP_DEBUG): ?><style>
		#think_page_trace_open{
			z-index:9999;
		}
	</style><?php endif; ?>
<body class="J_scroll_fixed" style="min-width:800px;">
<div class="wrap J_check_wrap">
    <ul class="nav nav-tabs">
        <li ><a href="<?php echo U('Financialadmin/index');?>" >订单列表</a></li>
        <li class="active"><a href="<?php echo U('Financialadmin/show');?>">订单详情</a></li>
        <li ><a href="<?php echo U('Financialadmin/statistics');?>">统计信息</a></li>
    </ul>
        <form class="well form-search" method="post" action="<?php echo U('Financialadmin/search');?>">
            <div class="search_type cc mb10">
                <div class="mb10">
					<span class="mr20">订单号：
						<input type="text" class="input length_2" name="keyword" style="width:200px;" value="<?php echo ($formget["keyword"]); ?>" placeholder="请输入订单号...">
						<button class="btn">搜索</button>
					</span>
                </div>
            </div>
        </form>
        <div class="h_a">订单信息：</div>
        <form class="J_ajaxForm" action="" method="post">
            <div class="table_list">
                <table width="100%" class="table table-hover">
                    <thead>
                    <tr>
                        <th width="16"><label><input type="checkbox" class="J_check_all" data-direction="x" data-checklist="J_check_x"></label></th>
                        <th style="background-color: #FFFFFF" width="150">编号</th>
                        <th width="80">购买用户</th>
                        <th width="90">商品数量</th>
                        <th width="">商品信息</th>
                        <th width="90">订单状态</th>
                        <th width="150">状态时间</th>
                        <th width="90">账单预计状态</th>
                        <th width="140"><span>订单金额</span></th>
                        <th width="120">操作</th>
                    </tr>
                    </thead>
                    <?php if(!empty($order)): ?><tr>
                        <td><input type="checkbox" class="J_check" data-yid="J_check_y" data-xid="J_check_x" name="ids[]" value="<?php echo ($order["orderId"]); ?>"></td>
                        <td><a href="<?php echo U('Financialadmin/show',array('id'=>$order['orderId']));?>"><?php echo ($order["order_num"]); ?></a></td>
                        <td><?php echo ($order["uid"]); ?></td>
                        <td><?php echo ($order["goods_num"]); ?></td>
                        <td><?php echo ($order["goodsInfo"]); ?></td>
                        <td><?php echo ($order["status"]); ?></td>
                        <td><?php if(!empty($order["status_time"])): ?><b><?php echo (date("Y-m-d H:i",$order["status_time"])); ?></b><?php else: ?><b><?php echo (date("Y-m-d H:i",$order["cTime"])); ?></b><?php endif; ?></td>
                        <td style="color: red"><?php echo ($order["would_status"]); ?></td>
                            <td style="color: red"><b>￥<?php echo ($order["total"]); ?></b></td>
                        <td>
                            <a target="_self" href="<?php echo U('Financialadmin/edit',array('id'=>$vo[id]));?>" target="_self" >修改</a>
                        </td>
                        </tr>
                        <?php else: ?>
                        <tr><td colspan="9" style="text-align: center">没有相关信息！！！</td></tr><?php endif; ?>
                </table>
            </div>
        </form>
        <div class="h_a">快递信息：</div>
        <form class="J_ajaxForm" action="" method="post">
            <div class="table_list">
                <table width="100%" class="table table-hover">
                    <thead>
                    <tr>
                        <th width="16"><label><input type="checkbox" class="J_check_all" data-direction="x" data-checklist="J_check_x"></label></th>
                        <th style="background-color: #FFFFFF" width="150">快递信息编号</th>
                        <th width="80">用户ID</th>
                        <th width="90">收件人姓名</th>
                        <th width="">收件人地址</th>
                        <th width="90">邮编</th>
                        <th width="150">联系电话</th>
                        <th width="90">固定电话</th>
                        <th width="140"><span>快递信息</span></th>
                        <th width="120">操作</th>
                    </tr>
                    </thead>
                    <?php if(!empty($post)): ?><tr>
                        <td><input type="checkbox" class="J_check" data-yid="J_check_y" data-xid="J_check_x" name="pos[]" value="<?php echo ($post["postId"]); ?>"></td>
                        <td><a href="<?php echo U('Financialadmin/show',array('id'=>$post['postId']));?>"><?php echo ($post["postId"]); ?></a></td>
                        <td><?php echo ($post["uid"]); ?></td>
                        <td><?php echo ($post["pName"]); ?></td>
                        <td><?php echo ($post["addrInfo"]); ?></td>
                        <td><?php echo ($post["post_num"]); ?></td>
                        <td><?php echo ($post["pMobile"]); ?></td>
                        <td><?php echo ($post["pTel"]); ?></td>
                        <td><?php echo ($post["postInfo"]); ?></td>
                        <td>
                            <a target="_self" href="<?php echo U('Financialadmin/postEdit',array('id'=>$post['postId']));?>" target="_self" >修改</a>
                        </td>
                        </tr>
                        <?php else: ?>
                        <tr><td colspan="9" style="text-align: center">没有相关信息！！！</td></tr><?php endif; ?>
                </table>
                </div>
        </form>
        <div class="h_a">商品信息：</div>
        <form class="J_ajaxForm" action="" method="post">
            <div class="table_list">
                <table width="100%" class="table table-hover">
                    <thead>
                    <tr>
                        <th width="16"><label><input type="checkbox" class="J_check_all" data-direction="x" data-checklist="J_check_x"></label></th>
                        <th style="background-color: #FFFFFF" width="100">商品编号</th>
                        <th width="300">头饰</th>
                        <th width="300">身体</th>
                        <th width="">商品图</th>
                        <th width="90">商品尺寸</th>
                        <th width="150">商品数量</th>
                        <th width="90"><span>商品描述</span></th>
                        <th width="140">商品单价</th>
                        <th width="120">操作</th>
                    </tr>
                    </thead>
                    <?php if(!empty($good)): if(is_array($good)): foreach($good as $key=>$vo): if(!empty($vo["class_type"])): ?><tr class="gray_back"><?php else: ?><tr><?php endif; ?>
                        <td><input type="checkbox" class="J_check" data-yid="J_check_y" data-xid="J_check_x" name="pids[]" value="<?php echo ($vo["pid"]); ?>"></td>
                        <td><a href="<?php echo U('Financialadmin/show',array('id'=>$vo['pid']));?>"><?php echo ($vo["pid"]); ?></a></td>
                        <td><img class="good_img" src="<?php echo ($vo["hd_id"]); ?>"></td>
                        <td><img class="good_img" src="<?php echo ($vo["bd_id"]); ?>"></td>
                        <?php if(empty($vo["user_model"])): ?><td>暂无用户商品图信息</td><?php else: ?><td><img class="good_img" src="<?php echo ($vo["user_model"]); ?>"></td><?php endif; ?>
                        <td><?php echo ($vo["size"]); ?></td>
                        <td><?php echo ($vo["num"]); ?></td>
                        <td><?php echo ($vo["desc"]); ?></td>
                        <td style="color: red"><b>￥<?php echo ($vo["price"]); ?></b></td>
                        <td>
                            <a target="_self" href="<?php echo U('Financialadmin/goodEdit',array('id'=>$vo['pid']));?>" target="_self" >修改</a>
                        </td>
                        </tr><?php endforeach; endif; ?>
                        <?php else: ?>
                        <tr><td colspan="9" style="text-align: center">没有相关信息！！！</td></tr><?php endif; ?>
                </table>
            </div>
        </form>
        <div class="h_a">图片信息：</div>
        <form class="J_ajaxForm" action="" method="post">
            <div class="table_list" >
                <table width="100%" class="table table-hover">
                    <thead>
                    <tr>
                        <th width="16"><label><input type="checkbox" class="J_check_all" data-direction="x" data-checklist="J_check_x"></label></th>
                        <th style="background-color: #FFFFFF" width="150">用户名</th>
                        <th width="150">用户电话</th>
                        <th width="300">正面照</th>
                        <th width="300">左面照</th>
                        <th width="300">右面照</th>
                        <td width="">其他信息</td>
                        <td width="120">操作</td>
                    </tr>
                    </thead>
                    <?php if(!empty($user)): ?><tr>
                            <td><input type="checkbox" class="J_check" data-yid="J_check_y" data-xid="J_check_x" name="pids[]" value="<?php echo ($vo["pid"]); ?>"></td>
                            <td><?php echo ($user["user_login"]); ?></td>
                            <td><?php echo ($user["user_mobile"]); ?></td>
                            <?php if(empty($image["1"])): ?><td>暂无用户图信息</td><?php else: ?><td><a href="<?php echo ($image["1"]); ?>" target="_blank"><img class="good_img" src="<?php echo ($image["1"]); ?>"></a></td><?php endif; ?>
                            <?php if(empty($image["2"])): ?><td>暂无用户图信息</td><?php else: ?><td><a href="<?php echo ($image["2"]); ?>" target="_blank"><img class="good_img" src="<?php echo ($image["1"]); ?>"></a></td><?php endif; ?>
                            <?php if(empty($image["3"])): ?><td>暂无用户图信息</td><?php else: ?><td><a href="<?php echo ($image["3"]); ?>" target="_blank"><img class="good_img" src="<?php echo ($image["1"]); ?>"></a></td><?php endif; ?>
                            <td><?php echo ($user["content"]); ?></td>
                            <td>
                                <a target="_self" href="<?php echo U('Financialadmin/goodEdit',array('id'=>$vo['pid']));?>" target="_self" >修改</a>
                            </td>
                        </tr>
                        <?php else: ?>
                        <tr><td colspan="9" style="text-align: center; font-size: 12px">没有相关信息！！！</td></tr><?php endif; ?>
                </table>
            </div>
        </form>
    </div>
</body>
</html>